<?php

namespace App\Models\Orders\Traits\Relationship;


/**
 * Class UserRelationship
 * @package App\Models\Access\User\Traits\Relationship
 */
trait OrderRelationship
{

    /**
     * One-to-Many relations with User.
     *
     * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
     */
    public function user()
    {
        return $this->belongsTo('App\Models\Access\User\User','user_id','id');
    }
    /**
     * One-to-One relations with Goods.
     *
     * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
     */
    public function goods()
    {
        return $this->hasOne('App\Models\Goods\Goods','id','goods_id');
    }

}